package com.example.blog.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.example.blog.entity.Flink;
import com.example.blog.mapper.FlinkMapper;
import com.example.blog.service.IFlinkService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 刘扬新
 * @since 2023-06-27
 */
@Service
public class FlinkServiceImpl extends ServiceImpl<FlinkMapper, Flink> implements IFlinkService {

    @Resource
    FlinkMapper flinkMapper;

    public List<Flink> selectLinks(){
        LambdaQueryWrapper<Flink> wrapper = new LambdaQueryWrapper<>();
        wrapper.isNotNull(Flink::getName);
        List<Flink> flinks = flinkMapper.selectList(wrapper);
        return flinks;
    }
}
